<div class=" animated fadeInRight ecommerce">

    <div class="flex justify-start">
        <div class="col-md-1 padding-r-0">
            <div class=" border-radius ">
                <div class="margin-xs-r  treeview attendance-staff" style="max-height: 650px;height: auto;">
                    <ul class="list-group text-center border-radius">
                        <li class="list-group-item node-orgTree " @click="swatchFloor('')"
                            :class="{'vc-node-selected':reportOweFeeDetailInfo.conditions.floorId == ''}">
                            全部
                        </li>
                        <li class="list-group-item node-orgTree " v-for="(item,index) in reportOweFeeDetailInfo.floors"
                            :key="index" @click="swatchFloor(item.floorId)"
                            :class="{'vc-node-selected':reportOweFeeDetailInfo.conditions.floorId == item.floorId}">
                            {{item.floorName}}
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="col-md-11">

            <div class="ibox ">
                <div class="ibox-title">
                    <h5>
                        <vc:i18n name="查询条件" namespace="reportOweFeeDetail"></vc:i18n>
                    </h5>
                    <div class="ibox-tools" style="top:10px;">

                    </div>
                </div>
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-sm-2">
                            <select class="form-control-md form-control input-s-sm inline"
                                v-model="reportOweFeeDetailInfo.conditions.feeTypeCd">
                                <option selected value="">{{vc.i18n('请选择费用大类','reportFeeSummary')}}</option>
                                <option v-for="(item,index) in reportOweFeeDetailInfo.feeTypeCds" :key="index"
                                    v-bind:value="item.statusCd">
                                    {{item.name}}
                                </option>
                            </select>
                        </div>
                        <div class="col-sm-2">
                            <div class="form-group">
                                <input type="text" :placeholder="vc.i18n('请填写房屋编号','reportOweFeeDetail')"
                                    class="form-control form-control-md"
                                    v-model="reportOweFeeDetailInfo.conditions.objNameLike">
                            </div>
                        </div>
                        <div class="col-sm-2">
                            <div class="form-group input-group">
                                <input type="text" :placeholder="vc.i18n('请选择开始时间','reportOweFeeDetail')"
                                    v-model="reportOweFeeDetailInfo.conditions.startTime"
                                    class=" form-control startTime">
                            </div>
                        </div>
                        <div class="col-sm-2">
                            <div class="form-group input-group">
                                <input type="text" :placeholder="vc.i18n('请选择结束时间','reportOweFeeDetail')"
                                    v-model="reportOweFeeDetailInfo.conditions.endTime" class=" form-control endTime">
                            </div>
                        </div>
                        <div class="col-sm-2" v-if="reportOweFeeDetailInfo.communitys.length>1">
                            <select class="form-control-md form-control input-s-sm inline"
                                v-model="reportOweFeeDetailInfo.conditions.communityId" @change="_changCommunity()">
                                <option disabled selected value="">{{vc.i18n('请选择小区','reportFeeSummary')}}</option>
                                <option v-for="(item,index) in reportOweFeeDetailInfo.communitys" :key="index"
                                    v-bind:value="item.communityId">
                                    {{item.name}}
                                </option>
                            </select>
                        </div>
                        <div class="col-sm-2">
                            <button type="button" class="btn btn-primary btn-md" v-on:click="_queryMethod()">
                                <vc:i18n name="查询" namespace="reportOweFeeDetail"></vc:i18n>
                            </button>
                            <button type="button" class="btn btn-info btn-md" v-on:click="_resetMethod()"
                                style="margin-left: 20px;">
                                <vc:i18n name="重置" namespace="reportOweFeeDetail"></vc:i18n>
                            </button>
                        </div>

                    </div>
                    <div class="row">
                        <div class="col-sm-2">
                            <div class="form-group">
                                <input type="text" :placeholder="vc.i18n('请填写业主名称','reportOweFeeDetail')"
                                    class="form-control form-control-md"
                                    v-model="reportOweFeeDetailInfo.conditions.ownerNameLike">
                            </div>
                        </div>
                    </div>
                </div>

            </div>

            <div class="ibox">
                <div class="ibox-title">
                    <h5>
                        <vc:i18n name="欠费明细表" namespace="reportOweFeeDetail"></vc:i18n>
                    </h5>
                    <span class="fa fa-info-circle popover-show" style="cursor: pointer;"
                        data-content="房屋与费用项关联的欠费明细"></span>
                    <span style="font-size: 10px;">(按天更新)</span>
                    <div class="ibox-tools" style="top:10px;">
                        <button type="button" class="btn btn-primary btn-sm" v-on:click="_exportExcel()">
                            <i class="fa fa-plus"></i>
                            <span>
                                <vc:i18n name="导出" namespace="reportOweFeeDetail"></vc:i18n>
                            </span>
                        </button>
                    </div>
                </div>
                <div class="ibox-content">
                    <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
                        <thead>
                            <tr>
                                <th class="text-center">
                                    <vc:i18n name="费用编号" namespace="reportOweFeeDetail"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="房号" namespace="reportOweFeeDetail"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="业主" namespace="reportOweFeeDetail"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="业主电话" namespace="reportOweFeeDetail"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="面积" namespace="reportOweFeeDetail"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="费用项" namespace="reportOweFeeDetail"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="开始时间" namespace="reportOweFeeDetail"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="结束时间" namespace="reportOweFeeDetail"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="欠费时长(天)" namespace="reportOweFeeDetail"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="欠费金额" namespace="reportOweFeeDetail"></vc:i18n>
                                </th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr v-for="(fee,index) in reportOweFeeDetailInfo.fees">
                                <td class="text-center">{{index+1}}</td>
                                <td class="text-center">{{fee.objName}}</td>
                                <td class="text-center">{{fee.ownerName}}</td>
                                <td class="text-center">{{fee.ownerTel}}</td>
                                <td class="text-center">{{fee.builtUpArea}}</td>
                                <td class="text-center">{{fee.feeName}}</td>
                                <td class="text-center">{{fee.startTime}}</td>
                                <td class="text-center">{{fee.endTime}}</td>
                                <td class="text-center">{{fee.oweDay}}</td>
                                <td class="text-center">{{fee.oweAmount}}</td>
                            </tr>
                        </tbody>
                    </table>
                    <!-- 分页 -->
                    <div class="row">
                        <span class="col-md-1 margin-left">
                            <div class="row">
                                <b>
                                    <vc:i18n name="小计" namespace="reportOweFeeDetail"></vc:i18n>
                                </b>
                            </div>
                            <div class="row">
                                <b>
                                    <vc:i18n name="大计" namespace="reportOweFeeDetail"></vc:i18n>
                                </b>
                            </div>
                        </span>
                        <span class="col-md-2">
                            <div class="row">
                                <span>
                                    <vc:i18n name="欠费" namespace="reportOweFeeDetail"></vc:i18n>
                                </span>: {{reportOweFeeDetailInfo.totalPreferentialAmount}}
                                <span>
                                    <vc:i18n name="元" namespace="reportOweFeeDetail"></vc:i18n>
                                </span>
                            </div>
                            <div class="row">
                                <span>
                                    <vc:i18n name="欠费" namespace="reportOweFeeDetail"></vc:i18n>
                                </span>: {{reportOweFeeDetailInfo.allOweAmount}}
                                <span>
                                    <vc:i18n name="元" namespace="reportOweFeeDetail"></vc:i18n>
                                </span>
                            </div>
                        </span>
                    </div>
                    <div class="row">
                        <div class="col-sm-6">
                            <div>
                                费用开始时间：所创建费用的计费起始时间
                            </div>
                            <div>欠费时长（天）：押金费用项欠费时长是费用开始时间到当天的天数</div>
                            <div>除押金外的费用项欠费时长是费用的开始时间到费用的结束时间的天数</div>
                            <div>欠费金额：欠费周期内应缴费用</div>
                        </div>
                        <div class="col-md-6 text-center">
                            <vc:create path="frame/pagination"></vc:create>
                        </div>
                    </div>
                </div>

            </div>
        </div>
    </div>
</div>